﻿<!-- 文档类型声明 -->
<!DOCTYPE html> 
<!-- 文档使用中文 -->                 
<html lang = "zh-cn">
  <head>
	<!-- 网页标题 -->
    <title>明日云备份</title>
	<!-- 设置当前文档的编码格式 -->
	<meta charset = "utf-8">
	<!-- 设置IE浏览器的解析模式 -->
	<meta http-equiv = "X-UA-Compatible" content = "IE=edge">
	<!-- 设置视窗 -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 1.加载Bootstrap的层叠样式表 -->
    <link rel="stylesheet" href="<?php echo base_url();?>/public/css/bootstrap.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
	<div class="page-header">
		<h2 class = "col-sm-offset-1"><span class = "glyphicon glyphicon-folder-open"></span>&nbsp;&nbsp;&nbsp;明日云备份</h2>
	</div>
	
	<div class="col-sm-3">
		<div class="well">
			<div id = "userinfo">
				<span class = "glyphicon glyphicon-user col-sm-5">&nbsp;<?php echo $username;?></span>
				<span class = "glyphicon glyphicon-off col-sm-offset-4">&nbsp;<a href = "<?php echo site_url('upload/logout');?>" style = "color:black">退出</a></span>
			</div>
			<br>
			<div>
				<div class = "text-info col-sm-offset-1">当前位置：[我的空间]</div>
				<br>
				<div class = "text-info col-sm-offset-1">您的权限：
				<?php if($userright == 0){
					echo "超级用户";
				}else if($userright == 1){
					echo "高级用户";
				}else{
					echo "普通用户";
				}
				?></div>
				<br>
				<div class = "text-info col-sm-offset-1">剩余空间： <?php echo round((20*1024-$userspace)/1024,2);?>M</div>
				<br>
				<div class = "text-info col-sm-offset-1">使用情况： </div>
				<br>
				<div class = "col-sm-offset-1">
				<div class="progress">
					<div class="progress-bar" role="progressbar" aria-valuenow="<?php echo $spacerate;?>" aria-valuemin="0" aria-valuemax="100" style="width:<?php echo $spacerate;?>%;">
					<?php echo $spacerate;?>%
					</div>
				</div>
				</div>
			</div>
		</div>
		<div>
			<img src="<?php echo base_url();?>/public/pictures/logo.jpg" style = "left:0px;top:0px;height:430px;width:310px">		
		</div>
	</div>